From: Colin Walters Date: Wed, 14 Sep 2016 16:56:07 +0000 (-0400) Subject: boot: Ensure we remount /var writable before systemd does journal flush X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~46^2~8 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=450361d89bb937e157994abb15923a881da57ba3;p=ostree.git boot: Ensure we remount /var writable before systemd does journal flush Otherwise, we may not get a persistent journal for the first boot. https://bugzilla.redhat.com/show_bug.cgi?id=1265295 Closes: #511 Approved by: jlebon --- diff --git a/src/boot/ostree-remount.service b/src/boot/ostree-remount.service index 61dd5fa8..8439b495 100644 --- a/src/boot/ostree-remount.service +++ b/src/boot/ostree-remount.service @@ -25,7 +25,7 @@ After=-.mount After=systemd-remount-fs.service Before=local-fs.target umount.target # Other early boot units that need to write to /var -Before=systemd-random-seed.service plymouth-read-write.service +Before=systemd-random-seed.service plymouth-read-write.service systemd-journal-flush.service # tmpfiles.d usually needs write access to a few places Before=systemd-tmpfiles-setup.service